from fastapi import APIRouter, Request

from motor.utils.logger import get_logger

logger = get_logger(__name__)

router = APIRouter()


@router.post("/v1/alarm/coordinator")
async def alarms(request: Request):
    body = await request.json()
    logger.info(f"received alarm request: {body}")
    return {"message": "ok"}